package com.example.pattern.mediator;

/**
 * 具体同事类
 *
 * @author FM_南风
 * @date 2024/7/6
 */
public class ConcreteColleague2 extends Colleague {
	public ConcreteColleague2(Mediator mediator) {
		super(mediator);
	}

	@Override
	public void sendMessage(String message) {
		mediator.sendMessage(message, this);
	}

	@Override
	public void receiveMessage(String message) {
		System.out.println("ConcreteColleague2 received: " + message);
	}
}